package hu.bme.mit.inf.expendables.entities;
	
import javax.persistence.*;
import hu.bme.mit.inf.expendables.entities.*;
import java.util.List;
import java.util.ArrayList;


@Entity
@Table(name="T_MANAGER")
@NamedQueries(
	{
	@NamedQuery(name=Manager.GET_MANAGER,query="SELECT m FROM Manager m WHERE m.userId = :manId"),
	@NamedQuery(name=Manager.DELETE_MANAGER,query="DELETE FROM Manager m WHERE m.userId = :manId")
	})
public class Manager extends User {
	                        	
	public static final String GET_MANAGER = "GetManager";
	public static final String DELETE_MANAGER = "DeleteManager";

	//Attributes

	//Reference to AppSupervision
	@OneToMany(mappedBy="supervisor_metadata")
	private List<AppSupervision> supervisions_metadata= new ArrayList<AppSupervision>();
	
	//Reference to AppSupervision
	@OneToMany(mappedBy="supervisor_appTest")
	private List<AppSupervision> supervisions_appTest= new ArrayList<AppSupervision>();
	
	//Reference to AppSupervision
	@OneToMany(mappedBy="supervisor_appName")
	private List<AppSupervision> supervisions_appName= new ArrayList<AppSupervision>();
	


	//Getters and Setters

	public List<AppSupervision> getSupervisions_metadata(){
		return supervisions_metadata;
	}
	
	public void setSupervisions_metadata(List<AppSupervision> supervisions_metadata){
		this.supervisions_metadata = supervisions_metadata;
	}
		
	public List<AppSupervision> getSupervisions_appTest(){
		return supervisions_appTest;
	}
	
	public void setSupervisions_appTest(List<AppSupervision> supervisions_appTest){
		this.supervisions_appTest = supervisions_appTest;
	}
		
	public List<AppSupervision> getSupervisions_appName(){
		return supervisions_appName;
	}
	
	public void setSupervisions_appName(List<AppSupervision> supervisions_appName){
		this.supervisions_appName = supervisions_appName;
	}
		
}